var textInput = function() {

	var libdir = "/text-input/";

    return {
     
        /***** TEXT INPUT *****/
        
        //add the tag to the database
        textInputChangeHandler : function (cid, host, did, dbase, val) {
        	
        	//update the datastore
        	var uri = host + libdir + "text-input-update.xqy?cid="+cid+
        													"&host="+host+
        													"&did="+did+
        													"&dbase="+dbase+
        													"&val="+val
        	httpRequest(uri);
        }
       
    }
}();